<?php
$this->pageTitle=Yii::app()->name . ' - Login';
?>

<div class="box-header">
	<h2>登录系统</h2>
</div>
<div class="box">
<div class="notification tip" style="display: block; "> 
	<span class="strong">提示：</span> <em>*</em>为必填项. <span class="close" title="Dismiss"></span>
</div>

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions'=>array(
		'class'=>'form col'
	)
)); ?>

	<p>
    	<label for="username" class="strong"><em>*</em>用户名：</label>
		<?php echo $form->textField($model,'username',array('original-title'=>'请填写用户名')); ?>
		<?php //echo $form->error($model,'username'); ?>
	</p>	
    <p>
    	<label for="password" class="strong"><em>*</em>密码：</label>
		<?php echo $form->passwordField($model,'password', array('original-title'=>'请填写密码')); ?>
		<?php //echo $form->error($model,'password'); ?>
	</p>
	<p class="no-margin">		
    	<label for="rememberMe">
		<?php echo $form->checkBox($model,'rememberMe'); ?> 记住账号 ?
        </label>
		<?php //echo $form->error($model,'rememberMe'); ?> 
        <input type="submit" value="登录" name="yt0" class="small fr btnlogin">
        <br class="cl"/>		
	</p>

<?php $this->endWidget(); ?>
<!-- form -->
